home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_521 / a68k / a68k271.lzh / protos.h < prev    next >
C/C++ Source or Header  |  1991-04-16  |  5KB  |  157 lines

  1. /* Prototype definitions for A68k - last modified April 16, 1991 */
  2.  
  3. #ifndef __NOPROTO
  4. #ifndef __PROTO
  5. #define __PROTO(a) a
  6. #endif
  7. #else
  8. #ifndef __PROTO
  9. #define __PROTO(a) ()
  10. #endif
  11. #endif
  12.  
  13.  
  14. /* Prototypes for functions defined in A68kmain.c */
  15.  
  16. void main __PROTO((int argc,
  17.                    char **argv));
  18. int getfilename __PROTO((char *name,
  19.                          char *arg,
  20.                          char *desc,
  21.                          int needit));
  22. int checkswitch __PROTO((char *sw,
  23.                          char *name));
  24. void defaultfile __PROTO((char *name,
  25.                           char *ext));
  26. int checkdupfile __PROTO((char *name1,
  27.                           char *desc1,
  28.                           char *name2,
  29.                           char *desc2));
  30. void startpass __PROTO((char pchar,
  31.                         long maxheap2));
  32. void quit_cleanup __PROTO((char *s));
  33.  
  34.  
  35. /* Prototypes for functions defined in Adirect.c */
  36.  
  37. int ObjDir __PROTO((int dummy));
  38. void DoSection __PROTO((char *name,
  39.                         int nameloc,
  40.                         char *type,
  41.                         int typeloc,
  42.                         char *flags,
  43.                         int flagloc));
  44.  
  45.  
  46. /* Prototypes for functions defined in Codegen.c */
  47.  
  48. void GetObjectCode __PROTO((int dummy));
  49. void PackFwdBranch __PROTO((int dummy));
  50.  
  51.  
  52. /* Prototypes for functions defined in Opcodes.c */
  53.  
  54. int Instructions __PROTO((int loc));
  55.  
  56.  
  57. /* Prototypes for functions defined in Operands.c */
  58.  
  59. int GetArgs __PROTO((char *name));
  60. void EffAdr __PROTO((register struct OpConfig *EA,
  61.                     int Bad));
  62. void OperExt __PROTO((register struct OpConfig *EA));
  63. void GetOperand __PROTO((char *oper,
  64.                         register struct OpConfig *op,
  65.                         int pcconv));
  66. int GetMultReg __PROTO((char *oper,
  67.                         int loc));
  68. int GetAReg __PROTO((char *op,
  69.                      int len,
  70.                      int loc));
  71. int IsRegister __PROTO((char *op,
  72.                         int len));
  73. int GetInstModeSize __PROTO((register int Mode));
  74.  
  75.  
  76. /* Prototypes for functions defined in Symtab.c */
  77.  
  78. int OpenIncl __PROTO((char *name,
  79.                       char *dirlist));
  80. int LineParts __PROTO((int dummy));
  81. void GetMacLine __PROTO((int dummy));
  82. int GetLine __PROTO((int dummy));
  83. void SubArgs __PROTO((int dummy));
  84. void GetParts __PROTO((int dummy));
  85. void ShowFile __PROTO((int newline));
  86. void ShowLine __PROTO((register int i));
  87. char *GetField __PROTO((register char *s,
  88.                                  register char *d));
  89. long GetValue __PROTO((char *operand,
  90.                        int loc));
  91. void CondCalc __PROTO((int newprec));
  92. int IsOperator __PROTO((register char *o));
  93. long CalcValue __PROTO((char *operand,
  94.                         int loc));
  95. void AddSymTab __PROTO((char *label,
  96.                         long value,
  97.                         long hunk,
  98.                         int line,
  99.                         int flags));
  100. char *AddName __PROTO((char *name,
  101.                                 int macflag));
  102. int ReadSymTab __PROTO((char *label));
  103. struct SymTab **HashIt __PROTO((register char *label));
  104. struct SymTab *NextSym __PROTO((register struct SymTab *sym));
  105. void AddRef __PROTO((int linenum));
  106. int CountNest __PROTO((register char *s));
  107. void Heap2Space __PROTO((int n));
  108. void ParseSpace __PROTO((int n));
  109.  
  110.  
  111. /* Prototypes for functions defined in A68kmisc.c */
  112.  
  113. long AddrBndW __PROTO((register long v));
  114. long AddrBndL __PROTO((register long v));
  115. void WriteListLine __PROTO((struct fs *f));
  116. void WriteSymTab __PROTO((struct fs *f));
  117. void CheckPage __PROTO((struct fs *f,
  118.                         int xhdr));
  119. void StartSrec __PROTO((struct fs *f,
  120.                         char *idntname));
  121. void WriteSrecLine __PROTO((struct fs *f));
  122. void AppendSdata __PROTO((register long Data,
  123.                           int n, ...));
  124. void FixOrg __PROTO((int dummy));
  125. void DumpSdata __PROTO((register struct fs *f));
  126. void PutRel __PROTO((long addr,
  127.                      long hunk,
  128.                      int size));
  129. void DumpRel __PROTO((struct fs *f));
  130. void EndSdata __PROTO((struct fs *f,
  131.                        long addr));
  132. void DumpName __PROTO((struct fs *f,
  133.                        char *name,
  134.                        long flags));
  135. void LongPut __PROTO((struct fs *f,
  136.                       long data,
  137.                       int length));
  138. int xopen __PROTO((char *name,
  139.                    struct fs *f,
  140.                    char *desc));
  141. void xputs __PROTO((struct fs *f,
  142.                     register char *s));
  143. void xputl __PROTO((register struct fs *f,
  144.                     register long data));
  145. void xputc __PROTO((char byte,
  146.                     register struct fs *f));
  147. void xclose __PROTO((struct fs *f));
  148. void xwrite __PROTO((struct fs *f));
  149. void Error __PROTO((int pos,
  150.                     int errornum));
  151. void DisplayLine __PROTO((int dummy));
  152.  
  153.  
  154. /* Prototypes for functions defined in wb_parse.c */
  155.  
  156. void _wb_parse __PROTO((void));
  157.